package partage;

import java.io.Serializable;

public class InfoTrafic implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int numTrain;
	private String etat = new String();
	private String natureProbleme = new String();
	private String  listetat[]={ "retard", "perturbation", "retour à la normale" };
	private String listproblem[]={"greve","accident","aucun conducteur","plus de m&ms","chaussure cassé"};
	
	public InfoTrafic(){
		this.numTrain= (int)(Math.random() * (10000-0)) + 0;
		this.etat=listetat[(int)(Math.random() * (3-0)) + 0];
		this.natureProbleme=listproblem[(int)(Math.random() * (3-0)) + 0];
	}
	

	public int getNumTrain() {
		return numTrain;
	}

	public void setNumTrain(int numTrain) {
		this.numTrain = numTrain;
	}

	public String getEtat() {
		return etat;
	}

	public void setEtat(String etat) {
		this.etat = etat;
	}

	public String getNatureProbleme() {
		return natureProbleme;
	}

	public void setNatureProbleme(String natureProbleme) {
		this.natureProbleme = natureProbleme;
	}

}
